import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useChannelStore = defineStore('channel', () => {
  const channelId = ref(0)
  // 修改channel的值
  const changeId = (id: number) => {
    channelId.value = id
  }

  return { channelId, changeId }
})
